#ifndef __GTOOLBAR_H__
#define __GTOOLBAR_H__

#include "GMath.h"
#include <string.h>
#include <stdio.h>

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include "support.h"
#include "GTWindow.h"
#include "GButton.h"
//#define DEMO3
class CGToolBar : public CGTWindow
{
public:
	CGButton m_btDocument;
	CGButton m_btDos;
	CGButton m_btInternet;
	CGButton m_btInterTest;
	CGButton m_btLink;
	CGButton m_btMedia;

	CGTWindow m_wndMediaDock;
#ifdef DEMO3
	GdkScreen *screen;
	GdkColormap *colormap;

#endif
public:
	CGToolBar(){

	}
	virtual ~CGToolBar(){}

	virtual void show();
	virtual void hide();
	virtual void create(const char* bg_file = NULL );
	virtual void setPosition( int x, int y);
	virtual void setSize( int x, int y);

	void         onDocumentClick();
	void         onDocumentHover();
	void         onInternetClick();
	void         onInternetHover();
	void         onInterTestClick();
	void         onInterTestHover();
	void         onLinkClick();
	void         onLinkHover();
	void         onMediaClick();
	void         onMediaHover();
	void         onMediaLeave();

	void         onDosClick();
	void         onDosHover();

	void _onMouseLeave();
protected:
	void _initButtons();
	void _initButton( CGButton& bt, const char* file_name, int posX, int posY);
	void _leaveButton(CGButton& bt);

};



#endif//__GTOOLBAR_H__

